﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MineDiscover
{
    public class RuleManager
    {
        public static Difficulty GetDifficultDefault(DifficultType difficultType)
        {
            switch (difficultType)
            {
                case DifficultType.Intermediate:
                    return new Difficulty((int)DifficultValue.IntermediateWidth, (int)DifficultValue.IntermediateHeight, (int)DifficultValue.IntermediaMine);
                case DifficultType.Advanced:
                    return new Difficulty((int)DifficultValue.AdvancedWidth, (int)DifficultValue.AdvancedHeight,(int)DifficultValue.AdvancedMine);
                default:
                    return new Difficulty((int)DifficultValue.BeginnerWidth, (int)DifficultValue.BeginnerHeight, (int)DifficultValue.BeginnerMine);
            }
        }

        public static Difficulty GetDifficultCustom(int width, int height, int mine)
        {
            return new Difficulty(width, height, mine);
        }
    }
}
